<?php
/**
 * Created by PhpStorm.
 * User: zhao shou qiang
 * Date: 2017/12/27 0027
 * Time: 14:19
 */


use yii\helpers\Html;
use yii\grid\GridView;
use backend\controllers\DtActionFilter;

//工商信息
$step1 = false;
if ($model->stakeholder_title != '' || $model->registered_capital != '' || $model->registered_address != '' || $model->legal_representative != ''
    || $model->scope_of_business != '' || $model->proportion != '' || $model->borrower != '' || $model->buy_back != '')
    $step1 = true;

//涉诉情况
$step2 = false;
if (!empty($lawsuitList) && is_array($lawsuitList))
    $step2 = true;

//列失信
$step3 = false;
if ($model->faith != '' || $model->limit_high != '' || $model->block_list != '' || $model->block_value != '')
    $step3 = true;

//承债详情
$step5 = false;
if ($model->guarantee_scope != '' || $model->guarantee != '' || $model->seal_order != '' || $model->other_mortgage != '' || $model->evaluate_price != '' || $model->auction_price != '' || $model->market_price != '')
    $step5 = true;

//现场状态
$step6 = false;
if ($model->rent != '' || $model->live != '' || $model->interview != '')
    $step6 = true;

//回现评估
$step7 = false;
if ($model->payment_reservation != '' || $model->reservation_evidence != '' || $model->payment_radical != '' || $model->radical_evidence != '')
    $step7 = true;

$display_state = false;
if (DtActionFilter::checkProject('project_edit', $projectId)) {
    $display_state = true;
}

?>
<div class="otherMan diYaRenJiDiYaWu top10" id="qiTa">
    <div class="container containerShadow">
        <div class="row">
            <div class="topimg">
                <div class="left pull-left">
                    <span>其他承债人及资产情况</span>
                </div>
                <div class="pull-right">
                    <a href="javascript:;">
                        <?php
                        //if (DtActionFilter::checkProject('project_edit', $model->id))
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>

            <ul class="nav nav-tabs ">
                <?php
                $arr = [
                    1 => '一', 2 => '二', 3 => '三', 4 => '四', 5 => '五',
                    6 => '六', 7 => '七', 8 => '八', 9 => '九', 10 => '十',
                    11 => '十一', 12 => '十二', 13 => '十三', 14 => '十四', 15 => '十五',
                    16 => '十六', 17 => '十七', 18 => '十八', 19 => '十九', 20 => '二十'
                ];
                $ids_arr = array();
                if (count($list) > 0) {
                    foreach ($list as $key => $value) {
                        $ids_arr[] = $value->id;
                        if ($key == 0) {
                            //echo '<li class="active"><a href="#btab1" data-toggle="tab" data-id="' . $value->id . '">承债人' . $arr[$key + 1] . '</a></li>';
                            echo '<li class="active"><a href="javascript:;" data-toggle="tab" data-id="' . $value->id . '">承债人' . $arr[$key + 1] . '</a></li>';
                        } else {
                            //echo '<li><a href="#btab' . ($key + 1) . '" data-toggle="tab"  data-id="' . $value->id . '">承债人' . $arr[$key + 1] . '</a></li>';
                            echo '<li><a href="javascript:;" data-toggle="tab"  data-id="' . $value->id . '">承债人' . $arr[$key + 1] . '</a></li>';
                        }
                    }
                } else {
                    //echo '<li class="active"><a href="#btab1" data-toggle="tab" data-id="">承债人一</a></li>';
                    echo '<li class="active"><a href="javascript:;" data-toggle="tab" data-id="">承债人一</a></li>';
                }
                $ids = join(',',$ids_arr);

                ?>
            </ul>
            <div style="display: none;">
                <ul class="nav nav-tabs chengZhai">
                    <li class="active">
                        <a href="#othertab1" data-toggle="tab">承债人一
                            <span id="clos">X</span>
                        </a>
                    </li>
                    <li>
                        <a href="#othertab2" data-toggle="tab">承债人一
                            <span id="clos">X</span>
                        </a>
                    </li>
                    <li>
                        <a href="#othertab3" data-toggle="tab">承债人三
                            <span id="clos">X</span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:;" class="diYa">
                            <?php echo Html::img('@web/image/projectDetails/add.png', ['title' => '点击添加']); ?>
                        </a>
                    </li>
                </ul>
                <div class="cancelInConfirm clearfix">
                    <input id="confirm" class="cancelInConfirmActive add_other_confirm" type="button" value="保存"/>
                    <input id='cancel' type="button" class="add_other_cancel" value="取消"/>
                </div>
            </div>

            <div class="tab-content">
                <div class="tab-pane active" id="othertab1">
                    <div class="centerText clearfix ">
                        <span class="pull-left">工商信息
                            <span class="step1_nothing"><?php if (!$step1) echo '（暂无数据）'; ?></span>
                        </span>
                        <div>
                            <a href="javascript:;" class="pull-right">
                                <?php
                                if ($display_state)
                                    echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                                ?>
                            </a>
                        </div>
                    </div>

                    <form name="stakeholder_other_readonly" action="" style="display: <?php if (!$step1) echo 'none'; else echo 'block'; ?>">
                        <table class="table4 top30">
                            <tr>
                                <td>承债人名称</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder['stakeholder_title']"
                                           value="<?php echo Html::encode($model->stakeholder_title); ?>"
                                           class="stakeholder_title"
                                           readonly="readonly" style="width: 100%; "/>
                                </td>
                                <td>注册资本</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder['registered_capital']"
                                           value="<?php echo Html::encode($model->registered_capital); ?>"
                                           class="registered_capital"
                                           readonly="readonly" style="width: 100%; "/>
                                </td>
                            </tr>
                            <tr>
                                <td>注册地址</td>
                                <td style="width: 421px;">
                                	<pre class="registered_address"><?php echo Html::encode($model->registered_address); ?></pre>
                                    <!--<input type="text" name="ProjectInvestigationStakeholder['registered_address']"
                                           value="<?php echo Html::encode($model->registered_address); ?>"
                                           class="registered_address"
                                           readonly="readonly" style="width: 100%; padding: 0 14px;"/>-->
                                </td>
                                <td>法定代表人</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder['legal_representative']"
                                           value="<?php echo Html::encode($model->legal_representative); ?>"
                                           class="legal_representative"
                                </td>
                            </tr>
                            <tr>
                                <td>经营范围</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder['scope_of_business']"
                                           value="<?php echo Html::encode($model->scope_of_business); ?>"
                                           class="scope_of_business"
                                           readonly="readonly" style="width: 100%;" />
                                </td>
                                <td>股东及持股比例</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder['proportion']"
                                           value="<?php echo Html::encode($model->proportion); ?>" class="proportion"
                                           readonly="readonly" style="width: 100%; " />
                                </td>
                            </tr>
                            <tr>
                                <td>承债人状况</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder['borrower']"
                                           value="<?php echo Html::encode($model->borrower); ?>" class="borrower"
                                           readonly="readonly" style="width: 100%; " />
                                </td>
                                <td >和解回购意愿</td>
                                <td style="width: 421px;">
                                	<pre name="ProjectInvestigationStakeholder['buy_back']" class="buy_back"><?php echo Html::encode($model->buy_back); ?></pre>
                                    <!--<input type="text" name="ProjectInvestigationStakeholder['buy_back']"
                                           value="<?php echo Html::encode($model->buy_back); ?>" class="buy_back"
                                           readonly="readonly" style="width: 100%; padding: 0 14px;" />-->
                                </td>
                            </tr>
                        </table>
                    </form>
 
                    <form action="" name="stakeholder_other_edit" class="borderColor" class="borderColor"  style="display: none;">
                        <input type="hidden" name="ProjectInvestigationStakeholder[stakeholder_type]" value="4"/>
                        <input type="hidden" name="ProjectInvestigationStakeholder[project_id]"  value="<?php echo $projectId; ?>"/>
                        <table class="table4 top30 edit-table3 stakeholderOtherEedit">
                            <tr>
                                <td>承债人名称</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[stakeholder_title]"
                                           class="stakeholder_title"
                                           value="<?php echo Html::encode($model->stakeholder_title); ?>"/>
                                </td>
                                <td>注册资本</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[registered_capital]"
                                           class="registered_capital"
                                           value="<?php echo Html::encode($model->registered_capital); ?>"/>
                                </td>
                            </tr>
                            <tr>
                                <td>注册地址</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[registered_address]"
                                           class="registered_address"
                                           value="<?php echo Html::encode($model->registered_address); ?>"/>
                                </td>
                                <td>法定代表人</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[legal_representative]"
                                           class="legal_representative"
                                           value="<?php echo Html::encode($model->legal_representative); ?>"/>
                                </td>
                            </tr>
                            <tr>
                                <td>经营范围</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[scope_of_business]"
                                           class="scope_of_business"
                                           value="<?php echo Html::encode($model->scope_of_business); ?>"/>
                                </td>
                                <td>股东及持股比例</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[proportion]"
                                           class="proportion"
                                           value="<?php echo Html::encode($model->proportion); ?>"/>
                                </td>
                            </tr>
                            <tr>
                                <td>承债人状况</td>
                                <td>
                                    <select name="ProjectInvestigationStakeholder[borrower]" class="borrower" style="width: 100%;">
                                        <?php
                                        $managementStatus = Yii::$app->params['managementStatus'];
                                        if (!empty($managementStatus) && is_array($managementStatus)) {
                                            foreach ($managementStatus as $key => $value) {
                                                if ($model->borrower == '') {
                                                    if ($key == 0) {
                                                        echo '<option selected value="">' . $value . '</option>';
                                                    } else {
                                                        echo '<option  value="' . $value . '">' . $value . '</option>';
                                                    }
                                                } else {
                                                    if ($model->borrower == $value) {
                                                        echo '<option selected value="' . $value . '">' . $value . '</option>';
                                                    } else {
                                                        echo '<option value="' . $value . '">' . $value . '</option>';
                                                    }
                                                }
                                            }
                                        }
                                        ?>
                                    </select>
                                </td>
                                <td>和解回购意愿</td>
                                <td>
                                	<textarea name="ProjectInvestigationStakeholder[buy_back]" rows="" cols="" class="buy_back textarea-edit2"><?php echo Html::encode($model->buy_back); ?></textarea>
                                    <!--<input type="text" name="ProjectInvestigationStakeholder[buy_back]" class="buy_back"
                                           value="<?php echo Html::encode($model->buy_back); ?>"/>-->
                                </td>
                            </tr>
                        </table>
                        <div class="cancelInConfirm clearfix">
                            <input id="confirm" class="cancelInConfirmActive stakeholder_other_comfirm" type="button" value="保存"/>
                            <input id='cancel' type="button" value="取消"/>
                        </div>
                    </form>

                    <div class="centerText clearfix ">
                        <span class="pull-left">涉诉情况
                            <span class="step2_nothing"><?php if (!$step2) echo '（暂无数据）'; ?></span>
                        </span>
                        <div>
                            <a href="javascript:;" class="pull-right">
                                <?php
                                if ($display_state)
                                    echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                                ?>
                            </a>
                        </div>
                    </div>

                    <form name="lawsuit_other_readonly" action=""  style="display: <?php if (!$step2) echo 'none'; else echo 'block'; ?>">
                        <table class="top30 tableLien">
                            <tr>
                                <td>涉诉案号</td>
                                <td>涉诉原告/申请执行人</td>
                                <td>涉诉被告/被申请人</td>
                                <td>涉诉金额</td>
                                <td>法院</td>
                                <td>涉诉内容</td>
                            </tr>
                            <?php
                            if (!empty($lawsuitList) && is_array($lawsuitList)) {
                                foreach ($lawsuitList as $key => $value) {
                                    echo '
                                <tr>
                                     <td>
                                    	<span class="txt-cut-1" title = "' . $value['records_number'] . '">
                                    		' . $value['records_number'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['accuser'] . '">
                                    		' . $value['accuser'] . '
                                    	</span>
                                    </td>
                                    <td style="color:#333!important;background: #fff!important;">
                                    	<span class = "txt-cut-1" title = "' . $value['defendant'] . '" style="color:#333!important">
                                    		' . $value['defendant'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['money'] . '">
                                    		' . $value['money'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['court'] . '">
                                    		' . $value['court'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['lawsuit_content'] . '">
                                    		' . $value['lawsuit_content'] . '
                                    	</span>
                                    </td>
                                </tr>
                                 ';
                                }
                            }
                            ?>
                        </table>
                    </form>

                    <form name="lawsuit_other_edit" action="" class="borderColor" style="display: none;">
                        <table class="table-lien suSongQingKuang top30 edit-table4" border="" cellspacing=""
                               cellpadding="">
                            <tr class="td_top">
                                <td>涉诉案号</td>
                                <td>涉诉原告/申请执行人</td>
                                <td>涉诉被告/被申请人</td>
                                <td>涉诉金额</td>
                                <td>法院</td>
                                <td>涉诉内容</td>
                                <td>&nbsp;</td>
                            </tr>
                            <?php
                            if (!empty($lawsuitList) && is_array($lawsuitList)) {
                                foreach ($lawsuitList as $key => $value) {
                                    echo '
                                <tr>
                                    <td>
                                        <input type="text" name="info[' . $key . '][records_number]" class="records_number' . $key . '" value="' . $value['records_number'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][accuser]" class="accuser' . $key . '" value="' . $value['accuser'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][defendant]" class="defendant' . $key . '" value="' . $value['defendant'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][money]" class="money' . $key . '" value="' . $value['money'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][court]" class="court' . $key . '" value="' . $value['court'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][lawsuit_content]" class="lawsuit_content' . $key . '" value="' . $value['lawsuit_content'] . '"/>
                                    </td>
                                    <td>
                                        <input type="hidden" name="info[' . $key . '][id]" id="lawsuit_id' . $key . '" value="' . $value['id'] . '"/>
                                        <input type="button" class="remove delete_investigation_lawsuit" data-id="' . $value['id'] . '" value="删除"/>
                                    </td>
                                </tr>
                                 ';
                                }
                            }
                            ?>
                        </table>

                        <div class="cancelInConfirm clearfix">
                            <div class="left">
                                <input type="button" class="pull-left continueAdd" value="继续添加涉诉情况">
                            </div>
                            <input class="cancelInConfirmActive edit_lawsuit_confirm" type="button" value="保存">
                            <input class="edit_lawsuit_cnacel" type="button" value="取消">
                        </div>
                    </form>

                    <div class="centerText clearfix ">
                        <span class="pull-left">列失信
                            <span class="step3_nothing"><?php if (!$step3) echo '（暂无数据）'; ?></span>
                        </span>
                        <div>
                            <a href="javascript:;" class="pull-right">
                                <?php
                                if ($display_state)
                                    echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                                ?>
                            </a>
                        </div>
                    </div>

                    <form name="stakeholder_other_readonly" action="" style="display: <?php if (!$step3) echo 'none'; else echo 'block'; ?>">
                        <table class="top30 labelRowLine">
                            <tr>
                                <td>是否列失信</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[faith]" readonly
                                           class="faith"
                                           value="<?php
                                           if ($model->faith > 0) {
                                               $status = Yii::$app->params['faith'];
                                               echo $status[$model->faith];
                                           }  else {
                                               echo '';
                                           }
                                           ?>"/>
                                </td>
                                <td>是否限高</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[limit_high]" readonly
                                           class="limit_high"
                                           value="<?php
                                           if ($model->limit_high > 0) {
                                               $status = Yii::$app->params['limitHigh'];
                                               echo $status[$model->limit_high];
                                           } else {
                                               echo '';
                                           }
                                           ?>"/>
                                </td>
                            </tr>
                            <tr>
                                <td>失信名单</td>
                                <td colspan="3">
                                	<pre name="ProjectInvestigationStakeholder[block_list]" class="block_list"><?php echo Html::encode($model->block_list); ?></pre>
                                    <!--<textarea name="ProjectInvestigationStakeholder[block_list]" readonly
                                              class="block_list" rows=""
                                              cols="" style="border: none!important;"><?php echo Html::encode($model->block_list); ?></textarea>-->
                                </td>
                            </tr>
                            <tr>
                                <td>列失信价值描述</td>
                                <td colspan="3">
                                    <div>
                                    	<pre name="ProjectInvestigationStakeholder[block_value]" class="block_value"><?php echo Html::encode($model->block_value); ?></pre>
                                        <!--<textarea name="ProjectInvestigationStakeholder[block_value]" readonly
                                                  class="block_value" rows=""
                                                  cols="" style="border: none!important;"><?php echo Html::encode($model->block_value); ?></textarea>-->
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </form>

                    <form name="stakeholder_other_edit" action="" class="borderColor" style="display: none;">
                        <table border="" cellspacing="" cellpadding="" class="top30 labelRowline edit-table5">
                            <tr>
                                <td>是否列失信</td>
                                <td>
                                    <label for="otherleiYes">
                                        <span class="<?php if ($model->faith == 1) echo 'yesActive'; else echo 'noActive'; ?>">是</span>
                                        <input type="radio" class="yes faith_true" <?php if ($model->faith == 1) echo 'checked'; ?>
                                               name='ProjectInvestigationStakeholder[faith]'
                                               value="1" id="otherleiYes"/>
                                    </label>
                                    <label for="otherleiNo">
                                        <span class="<?php if ($model->faith == 2) echo 'yesActive'; else echo 'noActive'; ?>">否</span>
                                        <input type="radio" <?php if ($model->faith == 2) echo 'checked'; ?> class="no faith_false"
                                               name='ProjectInvestigationStakeholder[faith]'
                                               value="2" id="otherleiNo"/>
                                    </label>
                                </td>
                                <td class="heighYn">是否限高</td>
                                <td>
                                    <label for="otherGaoYes">
                                        <span class="<?php if ($model->limit_high == 1) echo 'yesActive'; else echo 'noActive'; ?>">是</span>
                                        <input type="radio"
                                               class="yes limit_high_true" <?php if ($model->limit_high == 1) echo 'checked'; ?>
                                               name='ProjectInvestigationStakeholder[limit_high]'
                                               value="1" id="otherGaoYes"/>
                                    </label>
                                    <label for="otherGaoNo">
                                        <span class="<?php if ($model->limit_high == 2) echo 'yesActive'; else echo 'noActive'; ?>">否</span>
                                        <input type="radio"
                                               class="no limit_high_false" <?php if ($model->limit_high == 2) echo 'checked'; ?>
                                               name='ProjectInvestigationStakeholder[limit_high]'
                                               value="2" id="otherGaoNo"/>
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <td>失信名单</td>
                                <td colspan="3">
                                    <textarea name="ProjectInvestigationStakeholder[block_list]" class="block_list textarea-edit2"
                                              rows="" cols=""><?php echo Html::encode($model->block_list); ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>列失信价值描述</td>
                                <td colspan="3">
                                    <textarea name="ProjectInvestigationStakeholder[block_value]" class="block_value textarea-edit2"
                                              rows="" cols=""><?php echo Html::encode($model->block_value); ?></textarea>
                                </td>
                            </tr>
                        </table>
                        <div class="cancelInConfirm clearfix">
                            <input id="confirm" class="cancelInConfirmActive stakeholder_other_comfirm" type="button" value="保存"/>
                            <input id='cancel' type="button" value="取消"/>
                        </div>
                    </form>

                    <div class="centerText clearfix ">
                        <span class="pull-left">承债详情
                            <span class="step5_nothing"><?php if (!$step5) echo '（暂无数据）'; ?></span>
                        </span>
                        <div>
                            <a href="javascript:;" class="pull-right">
                                <?php
                                if ($display_state)
                                    echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                                ?>
                            </a>
                        </div>
                    </div>

                    <form name="stakeholder_other_readonly" action="" style="display: <?php if (!$step5) echo 'none'; else echo 'block'; ?>">
                        <table class="top30 diYaXiangQing">
                            <tr>
                                <td style="height: 64px;">
                                    承债理由及<br/>法律依据
                                </td>
                                <td colspan="3">
                                	<pre name="ProjectInvestigationStakeholder[guarantee_scope]" class="guarantee_scope"><?php echo Html::encode($model->guarantee_scope); ?></pre>
                                        <!--<textarea name="ProjectInvestigationStakeholder[guarantee_scope]" readonly
                                                  class="guarantee_scope"
                                                  rows=""
                                                  cols="" style="border: none!important;"><?php echo Html::encode($model->guarantee_scope); ?></textarea>-->
                                </td>
                            </tr>
                            <tr>
                                <td>承债资产详细情况</td>
                                <td colspan="3">
                                	<pre name="ProjectInvestigationStakeholder[guarantee]" class="guarantee"><?php echo Html::encode($model->guarantee); ?></pre>
                                    <!--<textarea name="ProjectInvestigationStakeholder[guarantee]" readonly
                                              class="guarantee"
                                              rows="" cols="" style="border: none!important;"><?php echo Html::encode($model->guarantee); ?></textarea>-->
                                </td>
                            </tr>
                            <tr>
                                <td>查封顺序</td>
                                <td colspan="3" >
                                	<pre name="ProjectInvestigationStakeholder[seal_order]" class="seal_order"><?php echo Html::encode($model->seal_order); ?></pre>
                                    <!--<textarea name="ProjectInvestigationStakeholder[seal_order]" readonly
                                              class="seal_order"
                                              rows="" cols="" style="border: none!important;"><?php echo Html::encode($model->seal_order); ?></textarea>-->
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 64px;">其他抵押、<br/> 查 封详情
                                </td>
                                <td colspan="3">
                                	<pre name="ProjectInvestigationStakeholder[other_mortgage]" class="other_mortgage" ><?php echo Html::encode($model->other_mortgage); ?></pre>
                                        <!--<textarea name="ProjectInvestigationStakeholder[other_mortgage]" readonly
                                                  class="other_mortgage"
                                                  rows=""
                                                  cols="" style="border: none!important;"><?php echo Html::encode($model->other_mortgage); ?></textarea>-->
                                </td>
                            </tr>
                            <tr>
                                <td>评估价</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[evaluate_price]" readonly
                                           class="evaluate_price"
                                           value="<?php echo Html::encode($model->evaluate_price); ?>"/>
                                </td>
                                <td>拍卖价</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[auction_price]" readonly
                                           class="auction_price"
                                           value="<?php echo Html::encode($model->auction_price); ?>"/>
                                </td>
                            </tr>
                            <tr>
                                <td>市场询价</td>
                                <td colspan="3">
                                	<pre name="ProjectInvestigationStakeholder[market_price]" class="market_price"><?php echo Html::encode($model->market_price); ?></pre>
                                    <!--<textarea name="ProjectInvestigationStakeholder[market_price]" readonly
                                              class="market_price"
                                              rows=""
                                              cols="" style="border: none!important;"><?php echo Html::encode($model->market_price); ?></textarea>-->
                                </td>
                            </tr>
                        </table>
                    </form>

                    <form name="stakeholder_other_edit" action="" class="borderColor" style="display: none;">
                        <table class="top30 table2 diYaXiangQing edit-table6">
                            <tr>
                                <td>
                                    承债理由及<br/> 法律依据
                                </td>
                                <td colspan="3">
                                    <textarea name="ProjectInvestigationStakeholder[guarantee_scope]"
                                              class="guarantee_scope textarea-edit2"
                                              rows=""
                                              cols=""><?php echo Html::encode($model->guarantee_scope); ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>承债资产详细情况</td>
                                <td colspan="3">
                                    <textarea name="ProjectInvestigationStakeholder[guarantee]" class="guarantee textarea-edit2"
                                              rows="" cols=""><?php echo Html::encode($model->guarantee); ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>查封顺序</td>
                                <td colspan="3">
                                    <textarea name="ProjectInvestigationStakeholder[seal_order]" class="seal_order textarea-edit2"
                                              rows="" cols=""><?php echo Html::encode($model->seal_order); ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>其他抵押、<br/> 查 封详情
                                </td>
                                <td colspan="3">
                                    <textarea name="ProjectInvestigationStakeholder[other_mortgage]"
                                              class="other_mortgage textarea-edit2"
                                              rows=""
                                              cols=""><?php echo Html::encode($model->other_mortgage); ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>评估价</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[evaluate_price]"
                                           class="evaluate_price"
                                           value="<?php echo Html::encode($model->evaluate_price); ?>" style="padding:0 14px"/>
                                </td>
                                <td>拍卖价</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[auction_price]"
                                           class="auction_price"
                                           value="<?php echo Html::encode($model->auction_price); ?>" style="padding:0 14px"/>
                                </td>
                            </tr>
                            <tr>
                                <td>市场询价</td>
                                <td colspan="3">
                                    <textarea name="ProjectInvestigationStakeholder[market_price]" class="market_price textarea-edit2"
                                              rows=""
                                              cols=""><?php echo Html::encode($model->market_price); ?></textarea>
                                </td>
                            </tr>
                        </table>
                        <div class="cancelInConfirm clearfix">
                            <input id="confirm" class="cancelInConfirmActive stakeholder_other_comfirm" type="button" value="保存"/>
                            <input id='cancel' type="button" value="取消"/>
                        </div>
                    </form>

                    <div class="centerText clearfix ">
                        <span class="pull-left">现场状态
                            <span class="step6_nothing"><?php if (!$step6) echo '（暂无数据）'; ?></span>
                        </span>
                        <div>
                            <a href="javascript:;" class="pull-right">
                                <?php
                                if ($display_state)
                                    echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                                ?>
                            </a>
                        </div>
                    </div>

                    <form name="stakeholder_other_readonly" action="" style="display: <?php if (!$step6) echo 'none'; else echo 'block'; ?>">
                        <table class="top30 xianChangZhuangKuang">
                            <tr>
                                <td>租 赁</td>
                                <td>
                                	<pre name="ProjectInvestigationStakeholder[rent]" class="rent"><?php echo Html::encode($model->rent); ?></pre>
                                         <!--<textarea name="ProjectInvestigationStakeholder[rent]" readonly class="rent" rows=""
                                                   cols="" style="border: none!important;"><?php echo Html::encode($model->rent); ?></textarea>-->
                                </td>
                            </tr>
                            <tr>
                                <td>居 住</td>
                                <td>
                                	<pre name="ProjectInvestigationStakeholder[live]" class="live"><?php echo Html::encode($model->live); ?></pre>
                                        <!--<textarea name="ProjectInvestigationStakeholder[live]" readonly class="live" rows=""
                                                 cols="" style="border: none!important;"><?php echo Html::encode($model->live); ?></textarea>-->
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 64px">
                                    现场访谈<br/> 其他情况
                                </td>
                                <td>
                                	<pre name="ProjectInvestigationStakeholder[interview]" class="interview"><?php echo Html::encode($model->interview); ?></pre>
                                        <!--<textarea name="ProjectInvestigationStakeholder[interview]" readonly class="interview"
                                                  rows="" cols="" style="border: none!important;"><?php echo Html::encode($model->interview); ?></textarea>-->
                                </td>
                            </tr>
                        </table>
                    </form>

                    <form name="stakeholder_other_edit" action="" class="borderColor"  style="display: none;">
                        <table class="top30 table2 xianChangZhuangKuang edit-table7">
                            <tr>
                                <td>租 赁</td>
                                <td>
                                    <textarea name="ProjectInvestigationStakeholder[rent]" rows="" cols="" class="rent textarea-edit2"
                                              placeholder="是否有租赁。承租人、租金、租期。"><?php echo Html::encode($model->rent); ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>居 住</td>
                                <td>
                                    <textarea name="ProjectInvestigationStakeholder[live]" rows="" cols="" class="live textarea-edit2"
                                              placeholder="是否有人住。谁在住、清场难度。"><?php echo Html::encode($model->live); ?></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    现场访谈<br/> 其他情况
                                </td>
                                <td>
                                    <textarea name="ProjectInvestigationStakeholder[interview]"
                                              class="interview textarea-edit2" rows=""
                                              cols=""><?php echo Html::encode($model->interview); ?></textarea>
                                </td>
                            </tr>
                        </table>
                        <div class="cancelInConfirm clearfix">
                            <input id="confirm" class="cancelInConfirmActive stakeholder_other_comfirm" type="button" value="保存"/>
                            <input id='cancel' type="button" value="取消"/>
                        </div>
                    </form>

                    <div class="centerText clearfix ">
                        <span class="pull-left">回现评估
                            <span class="step7_nothing"><?php if (!$step7) echo '（暂无数据）'; ?></span>
                        </span>
                        <div>
                            <a href="javascript:;" class="pull-right">
                                <?php
                                if ($display_state)
                                    echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                                ?>
                            </a>
                        </div>
                    </div>

                    <form name="stakeholder_other_readonly" action="" style="display: <?php if (!$step7) echo 'none'; else echo 'block'; ?>">
                        <table class="top30 table4">
                            <tr>
                                <td>回现保守</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[payment_reservation]" id=""
                                           readonly class="payment_reservation"
                                           value="<?php echo Html::encode($model->payment_reservation); ?>">
                                </td>
                                <td>回现激进</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[payment_radical]" readonly
                                           class="payment_radical"
                                           id="" value="<?php echo Html::encode($model->payment_radical); ?>">
                                </td>
                            </tr>
                            <tr>
                            	<td>保守依据</td>
                                <td style="width: 37.7%;">
                                	<pre name="ProjectInvestigationStakeholder[reservation_evidence]" class="reservation_evidence"><?php echo Html::encode($model->reservation_evidence); ?></pre>
                                    <!--<textarea name="ProjectInvestigationStakeholder[reservation_evidence]" rows=""
                                              readonly class="reservation_evidence"
                                              cols="" style="border: none!important;"><?php echo Html::encode($model->reservation_evidence); ?></textarea>-->
                                </td>
                                <td>激进依据</td>
                                <td style="width: 37.7%;">
                                	<pre name="ProjectInvestigationStakeholder[radical_evidence]"  class="radical_evidence"><?php echo Html::encode($model->radical_evidence); ?></pre>
                                    <!--<textarea name="ProjectInvestigationStakeholder[radical_evidence]" readonly
                                              class="radical_evidence"
                                              rows=""
                                              cols="" style="border: none!important;"><?php echo Html::encode($model->radical_evidence); ?></textarea>-->
                                </td>
                            </tr>
                        </table>
                    </form>

                    <form name="stakeholder_other_edit" action="" class="borderColor" style="display: none;">
                        <table class="top30 table2 xianChangZhuangKuang edit-table1">
                            <tr>
                                <td>回现保守</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[payment_reservation]" id=""
                                           class="payment_reservation"
                                           value="<?php echo Html::encode($model->payment_reservation); ?>">
                                </td>
                                <td>回现激进</td>
                                <td>
                                    <input type="text" name="ProjectInvestigationStakeholder[payment_radical]"
                                           class="payment_radical"
                                           id="" value="<?php echo Html::encode($model->payment_radical); ?>">
                                </td>
                            </tr>
                            <tr>
                                <td>保守依据</td>
                                <td>
                                    <textarea name="ProjectInvestigationStakeholder[reservation_evidence]" rows=""
                                              class="reservation_evidence textarea-edit2 bYiJu3"
                                              cols=""><?php echo Html::encode($model->reservation_evidence); ?></textarea>
                                </td>
                                <td>激进依据</td>
                                <td>
                                    <textarea name="ProjectInvestigationStakeholder[radical_evidence]"
                                              class="radical_evidence textarea-edit2 jYiJu3"
                                              rows=""
                                              cols=""><?php echo Html::encode($model->radical_evidence); ?></textarea>
                                </td>
                            </tr>
                        </table>
                        <div class="cancelInConfirm clearfix">
                            <input id="confirm" class="cancelInConfirmActive stakeholder_other_comfirm" type="button" value="保存"/>
                            <input id='cancel' type="button" value="取消"/>
                        </div>
                    </form>
                </div>
                <input type="hidden" name="id" id="stakeholder_other_id" value="<?php echo $model->id; ?>"/>

                <input type="hidden" id="stakeholder_other_ids" value="<?php echo $ids; ?>"/>

                <input type="hidden" id="stakeholder_other_count" value="<?php echo count($list); ?>"/>


                <input type="hidden" class="step1_state" value="<?php if($step1) echo 1; else echo 2;?>"/>
                <input type="hidden" class="step2_state" value="<?php if($step2) echo 1; else echo 2;?>"/>
                <input type="hidden" class="step3_state" value="<?php if($step3) echo 1; else echo 2;?>"/>
                <input type="hidden" class="step5_state" value="<?php if($step5) echo 1; else echo 2;?>"/>
                <input type="hidden" class="step6_state" value="<?php if($step6) echo 1; else echo 2;?>"/>
                <input type="hidden" class="step7_state" value="<?php if($step7) echo 1; else echo 2;?>"/>

            </div>
        </div>
    </div>
</div>

</div>
</div>
</div>
 <!-- textarea 高度设置对比div -->
	
<div style="max-height: 1px; overflow: hidden;">
	
	<div id="d1" style="visibility:hidden;min-height: 80px;"></div>

</div>


<script type="text/javascript">
	// textarea 高度展示问题
//  $(".textarea-edit").keyup(function(){
//       
//    var val = $(this).val();
//    $("#d1").html("<pre>" +val+" "+"</pre>");
//    var h = $("#d1").height() ;
//    $(this).height(h);
//    if($('.bYiJu3').height()>$('.jYiJu3').height()){
//    	$('.jYiJu3').height($('.bYiJu3').height())
//    }else{
//    	$('.bYiJu3').height($('.jYiJu3').height())
//    }
//  });
//  
    
</script>


